package com.ch.engine.aop;

import org.springframework.stereotype.Component;

/**
 * aop测试
 *
 * @author wangchunhui
 * @date 2024/12/20 15:51
 */
@Component
public class TestAopImpl implements TestAop {

    @Override
    public int add(int i, int j) {
        System.out.println("add   --   result=" + (i + j));
        return i + j;
    }

    @Override
    public int delete(int i, int j) {
        System.out.println("delete   --   result=" + (i - j));
        return i - j;
    }

    @Override
    public int dev(int i, int j) {
        System.out.println("dev   --   result=" + (i / j));
        return i / j;
    }
}